package com.person.modules.person.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.person.common.validator.group.AddGroup;
import com.person.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

@TableName("b_user_doc")
@Data
public class UserDocEntity {
    @TableId
    private Long userId;


    private String name;

    private int gender;

    private Integer age;

    private String mobile;

    @TableField(exist = false)
    private String deptName;
    @TableField(exist = false)
    private String companyName;

    @NotNull(message = "部门不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Long deptId;

    private String education;


    @NotNull(message = "身份证不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String identityCard;

    private String entryDate;

    private String leaveDate;

    private Long userType;

    private String createTime;

    private String updateTime;
    @TableField(exist = false)
    private Long companyId;
    @TableField(exist = false)
    private String roleName;

    @TableField(exist = false)
    private String username;
    @TableField(exist = false)
    private String password;
    @TableField(exist = false)
    /** 沟通能力 */
    private int communication;
    /** 工作态度 */
    @TableField(exist = false)
    private int workingAttitude;
    /** 工作能力 */
    @TableField(exist = false)
    private int workingAbility;
    /** 忠诚 */
    @TableField(exist = false)
    private int loyal;
    /** 生活态度 */
    @TableField(exist = false)
    private int lifeAttitude;
    @TableField(exist = false)
    private ArrayList evaluate;
    @TableField(exist = false)
    private ArrayList punishment;
    @TableField(exist = false)
    private int status;
    @TableField(exist = false)
    private int year;
    @TableField(exist = false)
    private int month;

}